export const throwError = (msg: string, code: number = 500) => {
  throw createError({ statusCode: code, statusMessage: msg })
}
